import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import piniaPluginPersist from "pinia-plugin-persist"
import "element-plus/theme-chalk/el-message.css"
import "../public/iconfont/iconfont.css"
import {i18n} from '@/i18n'
import "./router/dynamicAddRouter"

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersist)
app.use(pinia)
app.use(i18n)
app.use(router)

app.mount('#app')



